<?php include_stylesheets_for_form($form) ?>
<?php include_javascripts_for_form($form) ?>

<div class="content_box">
  <h1>Alterar Senha</h1>
  <div class="content">
    <form action="<?php echo url_for('@change_password').'?id='.$form->getObject()->getId() ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
      <input type="hidden" name="sf_method" value="put" />
      <table class="form">
        <tfoot>
          <tr>
            <td colspan="2" style="text-align:center;">
              <?php echo $form->renderHiddenFields() ?>
              <a class="btn darkblue" href="<?php echo url_for('user/index') ?>">Cancelar</a>
              <input class="submit_btn darkblue" type="submit" value="Salvar" />
            </td>
          </tr>
        </tfoot>
        <tbody>
        <?php echo $form->renderGlobalErrors() ?>
          <tr>
            <th><?php echo $form['password']->renderLabel() ?></th>
            <td><?php echo $form['password'] ?></td>
            <td><?php echo $form['password']->renderError() ?></td>
          </tr>
          <tr>
            <th><?php echo $form['password_again']->renderLabel() ?></th>
            <td><?php echo $form['password_again'] ?></td>
            <td><?php echo $form['password_again']->renderError() ?></td>
          </tr>
        </tbody>
      </table>
    </form>
  </div>
</div>
